#ifndef TIMESETTINGWID_H
#define TIMESETTINGWID_H

#include <QWidget>
#include "ui_timesettingwid.h"

class TimeSettingWid : public QWidget
{
    Q_OBJECT
public:
    explicit TimeSettingWid(QWidget *parent = 0);
	void setTimeSetting(int duration, int user, int time);

private:
    Ui::UI_TimeSettingWid m_form;
    int m_hour, m_min, m_sec;
    int m_user, m_time;
    void makeConnections();

signals:
    void durationChanged(int duration);
    void userChanged(int user);
    void timeChanged(int time);

public slots:
    void HourHandle();
    void MinHandle();
    void SecHandle();
    void UserHandle();
    void TimeHandle();

};

#endif // TIMESETTINGWID_H
